<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="bean.RequestData,java.util.Date"%>
<%@page import="processing.ControllerHelper"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Fist JSP</title>
</head>
<body>
<%
	Object helper = session.getAttribute("helper");
	if (helper instanceof ControllerHelper) {
%>
<h1>Got helper</h1>
<%
	} else {
%>
<h1>Can not get helper at <%= new Date() %></h1>
<%
	}
%>
<b>Fill your information :</b>
<form action="main.do" method="get">
<p>Name <input type="text" name="username"
	value="${helper.data.username}"></input></p>
<p>Password<input type="text" name="password"
	value="${helper.data.password}"></input></p>
<b>Level of your happiness:</b><br></br>
<input type="radio" name="happiness" value="1" checked>Elated <input
	type="radio" name="happiness" value="2">Ecstatic <input
	type="radio" name="happiness" value="3">Joyous Preferred <br></br>
<b>Extras:</b><br></br>
<input type="checkbox" name="extras" value="sprinkles">Chocolate
Sprinkles <input type="checkbox" name="extras" value="fudge" checked>Hot
Fudge <input type="checkbox" name="extras" value="cream">Whipped
Cream<br></br>
Comments<textarea name="comments" rows="5" cols="20">${helper.data.comments}</textarea><br></br>
<b>Grade</b><select name="grade">
	<option value="4.0">A</option>
	<option value="3.7">A-</option>
	<option value="3.4" selected="selected">B+</option>
	<option value="3">B</option>
	<option value="2.7">B-</option>
	<option value="2.4">C+</option>
	<option value="2.0">C</option>
</select><br></br>
<b>Team</b><select name="team" multiple size="3">
	<option value="heat">Heat</option>
	<option value="marlins">Marlines</option>
	<option value="dolphins">Dolphins</option>
	<option value="panthers">Panthers</option>
</select> <br></br>
<input type="submit" name="confirmButton" value="Confirm"></form>
</body>
</html>